<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <!-- 信息 -->
    <link rel="icon" href="/favicon.ico" type="image/x-icon" />
    <title>消息提示</title>
    <meta name="author" content="尘跃" />
    <meta
        name="description"
        content="尘跃的个人分享网——消息"
    />

    <!-- style -->
    <link rel="stylesheet" href="/css/style.css">
    <link rel="stylesheet" href="/css/style-fit.css">

    <!-- 百度统计 -->
    <script src="/js/tongji.js"></script>
    <!-- Google ADS -->
    <meta name="google-adsense-account" content="ca-pub-7556556693775855">
    <script src="/js/ads.js"></script>
    
</head>
<body>
    <div style="position: absolute;display: flex;align-items: center;">
        <pre>&lt;- </pre>
        <a href="/index.html">返回首页</a>
    </div>

    <div style="width: 60vw;margin: auto;margin-top: 30vh;transform: translateY(-50%);">
        <h1 style="text-align: center;overflow-wrap: break-word;">提示</h1>
        <h3 id="message" style="width: 80%;margin: auto;text-align: center;overflow-wrap: break-word;margin-top: 1em;"></h3>
    </div>

    <script>
        // console.log(window.location.href);
        const param = window.location.href.match(/\?([^&]*([=][^&]*)?&)*message=([^&]*)&?/);
        // console.log(param);
        if (!param)
        {
            alert("错误");
            window.location.href = "/index.html";
        }

        const message = param[3];
        document.getElementById("message").innerHTML = decodeURI(message);

    </script>
</body>
</html>


